import request from '../request'

// 会议室管理
export const getMeetingRooms = (params) => {
  return request.get('/admin/rooms', { params })
}

export const createMeetingRoom = (data) => {
  return request.post('/admin/rooms', data)
}

export const updateMeetingRoom = (data) => {
  return request.put('/admin/rooms', data)
}

export const deleteMeetingRoom = (id) => {
  return request.delete(`/admin/rooms/${id}`)
}
